<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<meta http-equiv="X-UA-Compatible" content="IE=9" />
		<title>东方直播后台管理系统</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<!-- basic styles -->
		<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
		<link rel="stylesheet" href="assets/css/ace.min.css" />
		<link rel="stylesheet" href="assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="assets/css/ace-skins.min.css" />
		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

		<!--[if lt IE 9]>
		<script src="assets/js/html5shiv.js"></script>
		<script src="assets/js/respond.min.js"></script>
		<![endif]-->
	</head>

	<body>
		<%@ include file="head.jsp"%>
		<div id="main-container" class="main-container" >
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>
			<a class="menu-toggler" id="menu-toggler" href="#">
				<span class="menu-text"></span>
			</a>
			<%@include file="left.jsp"%>
			<div class="main-content">
				<iframe name="mainFrame" id="mainFrame" frameborder="0" src="admin/main.do"  style="margin:0 auto;width:100%;height:100%;"></iframe>
				<%@ include file="footer.jsp"%> 
			</div><!-- end of main-content -->
		</div>
	</body>
	<script src="assets/js/ace-extra.min.js"></script>
	<script src="assets/js/jquery-1.10.2.min.js"></script>
	<script src="assets/js/bootstrap.min.js"></script>
	<script src="assets/js/jquery-ui-1.10.3.custom.min.js"></script>
	<script src="assets/js/ace.min.js"></script>
	<script type="text/javascript" src="plugins/attention/zDialog/zDrag.js"></script>
	<script type="text/javascript" src="plugins/attention/zDialog/zDialog.js"></script> 
	<script type="text/javascript">
		function cmainFrame(){
			var hmain = document.getElementById("mainFrame");
			var bheight = document.documentElement.clientHeight;
			hmain.style.width = '100%';
			hmain.style.height = (bheight - 51 - 30) + 'px';
		}
		cmainFrame();
		window.onresize=function(){  
			cmainFrame();
		};
		
		function showDialog(title,url) {
			var diag = new Dialog();
			diag.Title = title;
			diag.URL = url;
			diag.show();
		}
		
		function showDialog(title,url,width,height) {
			var diag = new Dialog();
			diag.Title = title;
			diag.URL = url;
			diag.Width = width;
			diag.Height = height;
			diag.show();
		}
		
		function showConfirm(msg,func) {
			Dialog.confirm(msg,func);
		}
		
		function showAlert(msg) {
			Dialog.alert(msg);
		}
		function my() {
			window.parent.showDialog("查看个人资料",'<%=basePath%>admin/myPersonal.do?',250,240);
		};
		function refreshList() {
			mainFrame.window.formFresh();
		}
	</script>
</html>